package com.lwei.tallybook.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwei.tallybook.base.domain.rel.RelBillAccount;
import com.lwei.tallybook.service.mapper.rel.RelBillAccountMapper;
import com.lwei.tallybook.service.service.RelBillAccountService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RelBillAccountServiceImpl extends ServiceImpl<RelBillAccountMapper, RelBillAccount> implements RelBillAccountService {

    @Override
    public List<RelBillAccount> listRelBillAccountByAccount(String accountUuid) {
        QueryWrapper<RelBillAccount> wrapper = new QueryWrapper<>();
        wrapper.eq("bill_uuid", accountUuid);
        return super.list(wrapper);
    }
}
